package cn.ztuo.bitrade.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description  
 * @Author  Hunter
 * @Date 2020-03-16
 * @Description 风险额度
 */

@Data
@Entity
@Table ( name ="bourse_product_manager" )
public class BourseProductManager implements Serializable {

	private static final long serialVersionUID = 1L;
    @Id
   	@Column(name = "id" )
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@ApiModelProperty(value = "id", notes ="id",required = false)
	private Long id;


   	@Column(name = "product_name" )
	@ApiModelProperty(value="产品名称",example = "币币交易")
	private String productName;

	/**
	 * 类型 1: 合约
	 */
   	@Column(name = "product_code" )
	@ApiModelProperty(value="产品编码",example = "0100")
	private String productCode;
	/**
	 * 类型 1: 合约
	 */
   	@Column(name = "parent_code" )
	@ApiModelProperty(value="父产品编码",example = "0100")
	private String parentCode;

   	@Column(name = "status" )
	@ApiModelProperty(value="状态 1:正常 0:暂停",example = "1")
	private Integer status;



	/**
	 * 创建时间
	 */
	@Column(name = "create_time" )
	@ApiModelProperty(hidden = true)
//	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	/**
	 * 更新时间
	 */
	@Column(name = "update_time" )
	@ApiModelProperty(hidden = true)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date updateTime;

}
